package com.starmark.gateway.springcloud.provider.config;

import com.starmark.gateway.springcloud.provider.filter.GatewayCorsWebFilter;
import com.starmark.gateway.springcloud.provider.filter.GatewaySpecUrlWebFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author starmark
 * @date 20-1-30  下午4:04
 */
@Configuration
public class WebConfig {
    @Bean
    public GatewayCorsWebFilter corsFilter() {

        return new GatewayCorsWebFilter();
    }




    @Bean
    public GatewaySpecUrlWebFilter gatewaySpecUrlWebFilter() {

        return new GatewaySpecUrlWebFilter();
    }

}


 